import Entity from "./Entity";

export class Avatar<T> extends Entity {
    private avatarName:string;
    private avatarData:T;
    private createTime:number;
    private updateTime:number;
    private credential:string;
    private iv:string;
    constructor(name:string = ""){
        super();
        this.avatarName = name;
    }

    public getAvatarName():string{
        return this.avatarName;
    }

    public setAvatarName(name:string):void{
        this.avatarName = name;
    }

    public getAvatarData():T{
        return this.avatarData;
    }

    public setAvatarData(data:T):void{
        this.avatarData = data;
    }

    public getCreateTime():number{
        return this.createTime;
    }

    public setCreateTime(time:number):void{
        this.createTime = time;
    }

    public getUpdateTime():number{
        return this.updateTime;
    }

    public setUpdateTime(time:number):void{
        this.updateTime = time;
    }

    public setCredential(c:string){
        this.credential = c;
    }

    public getCredential():string{
        return this.credential;
    }

    public setIv(iv:string){
        this.iv = iv;
    }

    public getIv():string{
        return this.iv;
    }
}